//
//  LSZPoetryManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/20.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZPoetryManager.h"
#import "JKSongsMessStatus.h"
#import "LCPlaylist.h"
#import "NetworkTool+LCAVPlay.h"

@implementation LSZPoetryManager
-(id)initWithDicPoetryManager :(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        NSMutableArray * arrayDayaDic = [[NSMutableArray alloc]init];
        self.mutDataArray = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return  self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        //播放列表添加到
        [LSZSpecialPackaging addPlaylistWithArrayData:arrayData];

        for (NSDictionary* aDecoder in arrayData) {
            LSZPoetryMg * poetryMg = [[LSZPoetryMg alloc]init];
            poetryMg.album = [NSString stringWithFormat:@"%@",aDecoder[@"album"]];
            poetryMg.duration = [NSString stringWithFormat:@"%@",aDecoder[@"duration"]];
            poetryMg.fileUrl = [NSString stringWithFormat:@"%@",aDecoder[@"fileUrl"]];
            poetryMg.parentId = [NSString stringWithFormat:@"%@",aDecoder[@"parentId"]];
            poetryMg.id_id = [NSString stringWithFormat:@"%@",aDecoder[@"id"]];
            poetryMg.image = [NSString stringWithFormat:@"%@",aDecoder[@"image"]];
            poetryMg.nn = [NSString stringWithFormat:@"%@",aDecoder[@"nn"]];
            poetryMg.parentId = [NSString stringWithFormat:@"%@",aDecoder[@"parentId"]];
            poetryMg.singerName = [NSString stringWithFormat:@"%@",aDecoder[@"singerName"]];
            poetryMg.title = [NSString stringWithFormat:@"%@",aDecoder[@"title"]];
             [arrayDayaDic addObject:poetryMg];
        }
         self.mutDataArray = arrayDayaDic;
    }
    return self;
}


@end

@implementation LSZPoetryMg

@end
